import config from "@/config"
import http from "@/utils/request"

export default {
    edit: {
        url: `${config.API_URL}/roleDataPower/edit`,
        name: "新增角色权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    query: {
        url: `${config.API_URL}/roleDataPower/query`,
        name: "根据角色ID查询数据权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    batchEdit: {
        url: `${config.API_URL}/roleDataPower/batchEdit`,
        name: "批量新增角色权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },

    deleteDataPower: {
        url: `${config.API_URL}/roleDataPower/deleteDataPower`,
        name: "删除角色数据权限",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    }
}
